<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'new-item-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'new_name'); ?>
		<?php echo $form->textField($model,'new_name',array('size'=>60,'maxlength'=>145)); ?>
		<?php echo $form->error($model,'new_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'new_content'); ?>
		<?php //Example with Model
        $this->widget('ext.editMe.ExtEditMe', array(
      'model'=>$model,
      'attribute'=>'new_content',
      'htmlOptions'=>array('option'=>'value'),)); 
    ?>
		<?php echo $form->error($model,'new_content'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'new_date'); ?>
			<?php Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker');
    $this->widget('CJuiDateTimePicker',array(
        'model'=>$model, //Model object
        'attribute'=>'new_date', //attribute name
        'mode'=>'date', //use "time","date" or "datetime" (default)
        'options'=>array() // jquery plugin options
    ));
  ?>
		<?php echo $form->error($model,'new_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->hiddenField($model,'pag_code',array('readonly'=>'readonly')); ?>		
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->